<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/28
 * Time: 20:57
 */

return [
     'auth' => [
         'controller' => Zch\LishangLaravelShop\Wap\Member\Http\Controllers\AuthController::class,
         //当前使用的守卫
         'guard' => 'member',

         //守卫组
         'guards' => [
             'member' => [
                 'driver' => 'session',
                 'provider' => 'member',
             ],
         ],
         'providers' => [
             'users' => [
                 'driver' => 'eloquent',
                 'model' => Zch\LishangLaravelShop\Wap\Member\Models\User::class
             ],
         ],
     ],
     'wechat' => [
       'official_account' => [
           'default' => [
               'app_id' => 'zzzwx5c924bb65974c31f',         // AppID
               'secret' => 'zzzbffd7c3925899f735f4160596f82b05d',    // AppSecret
               'token' => 'zzzzch_weixin_lishang',           // Token
               /*'app_id' => env('WECHAT_OFFICIAL_ACCOUNT_APPID', 'zch-wx5c924bb65974c31f'),         // AppID
               'secret' => env('WECHAT_OFFICIAL_ACCOUNT_SECRET', 'zch-bffd7c3925899f735f4160596f82b05d'),    // AppSecret
               'token' => env('WECHAT_OFFICIAL_ACCOUNT_TOKEN', 'zch-zch_weixin_lishang'),           // Token*/
               'aes_key' => env('WECHAT_OFFICIAL_ACCOUNT_AES_KEY', ''),                 // EncodingAESKey
                'oauth' => [
                    'scopes'   => array_map('trim', explode(',', env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_SCOPES', 'snsapi_userinfo'))),
                    'callback' => env('WECHAT_OFFICIAL_ACCOUNT_OAUTH_CALLBACK', '/examples/oauth_callback.php'),
                ],
           ],
       ],
     ]
];
